package com.example.demo01.Entity.webEntity;

import org.springframework.stereotype.Component;

@Component
public class XYValueEntity {
    //attributes
    private Float x;//经度
    private Float y;//纬度
    private Float value;//次数
    //setter
    public void setX(Float x) {
        this.x = x;
    }

    public void setY(Float y) {
        this.y = y;
    }

    public void setValue(Float value) {
        this.value = value;
    }

    //getter
    public Float getX() {
        return x;
    }

    public Float getY() {
        return y;
    }

    public Float getValue() {
        return value;
    }

    //constructors

    public XYValueEntity() {
        super();
    }

    public XYValueEntity(Float x, Float y, Float value) {
        this.x = x;
        this.y = y;
        this.value = value;
    }

    //toString
    @Override
    public String toString() {
        return "XYValueEntity{" +
                "x=" + x +
                ", y=" + y +
                ", value=" + value +
                '}';
    }
}
